package com.lianzhihui.romeex.database.data;

import java.io.Serializable;

import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Copyright (C), 2019-2020
 * FileName: Rm_Wallet
 * Author: ZhaoFeng
 * Date: 2020/10/22 17:31
 * Description: 主钱包
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */
public class Rm_Wallet extends RealmObject implements Serializable {

    @PrimaryKey
    private String address;
    private String userName;
    private String saftyCode;
    private String mnemonicWords;
    private String phone;
    private String publicKey;
    private String privateKey;
    private String ciphertext; //keystore
    private String userUuid;
    private String headPathUrl;
    private boolean isChecked;//是否是当前选中钱包
    private RealmList<Rm_Assets> rm_AssetsList;

    public String getCiphertext() {
        return ciphertext;
    }

    public void setCiphertext(String ciphertext) {
        this.ciphertext = ciphertext;
    }

    /**
     * 钱包地址
     */
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 用户名称
     */
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 公钥
     */
    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    /**
     * 私钥
     */
    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    /**
     * 用户唯一编号
     */
    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    /**
     * 用户头像
     */
    public String getHeadPathUrl() {
        return headPathUrl;
    }

    public void setHeadPathUrl(String headPathUrl) {
        this.headPathUrl = headPathUrl;
    }

    /**
     * 资产基础表
     */
    public RealmList<Rm_Assets> getRm_AssetsList() {
        return rm_AssetsList;
    }

    public void setRm_AssetsList(RealmList<Rm_Assets> rm_AssetsList) {
        this.rm_AssetsList = rm_AssetsList;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public String getSaftyCode() {
        return saftyCode;
    }

    public void setSaftyCode(String saftyCode) {
        this.saftyCode = saftyCode;
    }

    public String getMnemonicWords() {
        return mnemonicWords;
    }

    public void setMnemonicWords(String mnemonicWords) {
        this.mnemonicWords = mnemonicWords;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Rm_Wallet{" +
                "address='" + address + '\'' +
                ", userName='" + userName + '\'' +
                ", saftyCode='" + saftyCode + '\'' +
                ", mnemonicWords='" + mnemonicWords + '\'' +
                ", phone='" + phone + '\'' +
                ", publicKey='" + publicKey + '\'' +
                ", privateKey='" + privateKey + '\'' +
                ", ciphertext='" + ciphertext + '\'' +
                ", userUuid='" + userUuid + '\'' +
                ", headPathUrl='" + headPathUrl + '\'' +
                ", isChecked=" + isChecked +
                ", rm_AssetsList=" + rm_AssetsList +
                '}';
    }
}
